﻿<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>Table</title>
		<link rel="stylesheet" href="../webjars/plugins/layui/css/layui.css" media="all" />
		<link rel="stylesheet" href="../webjars/css/global.css" media="all">
		<link rel="stylesheet" href="../webjars/plugins/font-awesome/css/font-awesome.min.css">
		<link rel="stylesheet" href="../webjars/css/table.css" />
	</head>

	<body>
		<div class="admin-main">
			<blockquote class="layui-elem-quote">
				<a href="server_add.html" class="layui-btn layui-btn-small">
					<i class="layui-icon">&#xe608;</i> 添加配置
				</a>
			</blockquote>
			<form action="" class="layui-form" method="post">
              <div class="layui-inline">
                <select id="env_select" asnycSelect="../admin/profile/options" lay-filter="env_select">
                  <option value="">请选择环境</option>
                </select>     
              </div>
              <div class="layui-inline">
                <input type="button" class="layui-btn J_search" lay-submit lay-filter="search" value="筛选"/>    
              </div>                           
           </form>			
			<fieldset class="layui-elem-field">
				<legend>Server列表</legend>
				<div class="layui-field-box layui-form">
					<table class="layui-table admin-table">
						<thead>
							<tr>
								<th>环境标识</th>
								<th>Server类型</th>
								<th>Servers</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody id="content"></tbody>
					</table>
				</div>
			</fieldset>
		</div>
		<!--模板-->
		<script type="text/html" id="list_tpl">
			{{# layui.each(d.data, function(index, item){ }}
			<tr>
				<td>{{ item.env }}</td>
				<td>{{ item.serverType }}</td>
				<td>{{ item.servers}}</td>
				<td>
					<a href="javascript:;" class="layui-btn layui-btn-mini J_form_dialog" templdate-url="./server_edit.html?id={{ item.id }}" data-url="../admin/monitorserver/{{ item.id }}">编辑</a>
					<a href="javascript:;" class="J_confirmurl layui-btn layui-btn-danger layui-btn-mini" act-url="../admin/monitorserver/delete/{{ item.id }}">删除</a>
				</td>
			</tr>
			{{# }); }}
		</script>
		<script type="text/javascript" src="../webjars/plugins/layui/layui.js"></script>
        <script type="text/javascript" src="../webjars/js/common.js?v20170728"></script>
        <script type="text/javascript" src="../webjars/js/moudule/monitorserver.js"></script>
        
        
	</body>
</html>